Book Contents

Example: Replace placeholders with tag names

The following example shows how to replace placeholders with tag names.

To run a display called Canning that has three tag placeholders, for the tags Pea_Weight, Pea_Level, and Pea_Temp

  1. On the Canning graphic display, create three numeric display objects.
  2. On the Connections tab for the first object, assign the placeholder #1 to the Value control.
  3. Assign the placeholders #2 and #3 to the Value controls for the second and third objects, respectively.
  4. Create a parameter file called Peas:

    #1=Pea_Weight

    #2=Pea_Level

    #3=Pea_Temp

  5. On another graphic display, for example, the main display or an overview display, create a Goto Display button.
  6. Assign the Canning graphic display and the Peas parameter file to the button.
  7. Run the application and press the Goto button to open the Canning display.

The numeric display with #1 will show the tag value for Pea_Weight, the numeric display with #2 will show the tag value for Pea_Level, and the numeric display with #3 will show the tag value for Pea_Temp.

See also

Create a parameter file

Replace a tag name or character string

Tag placeholders

Example: Replace placeholders with any part of a tag name